<p>
<?php
	$template = array(
						'table_open'	=> '<table id="table_application_list" class="table">',
						'table_close' 	=> '</table>'
				);

	$this->table->set_template($template);

	$list = array();
	foreach($applications_by_area as $key => $value) {
		if (isset($value['applications'])) {
		$list[$key] = "<h3>".$value['description']."</h3>";
			$list[$key] .= "<ul>";
			foreach ($value['applications'] as $subkey => $subvalue) {
				$prefix = strtolower($subvalue['prefix']);
				$uri = $subvalue['uri'];
				if (trim($uri) == "") {
					$url = $prefix;
				} else {
					$url = 'router/external/'.$prefix.'/'.encode_for_uri($uri);
				}
				$list[$key] .= "<li>".$this->common->anchor($url, $subvalue['description'])."</li>";
			}
			$list[$key] .= "</ul>";
		}
	}
		$new_list = $this->table->make_columns($list, 2);
		echo $this->table->generate($new_list);
	
?>
</p>